import xadmin
from .models import ActivityCategroy,MaterialCategroy,Foods

class ActivityCategroyAdmin(object):
    list_display = ['title', 'categoryId']
    list_filter = ['title', 'categoryId']

class MaterialCategroyAdmin(object):

    list_display = ['name', 'foodId','prentFoodId']
    list_filter = ['name', 'foodId','prentFoodId']

class FoodsAdmin(object):
    list_display = ['foodId','name','author', 'material']
    list_filter = ['foodId','name','author', 'material']
    #search_field = ['foodId', ]

xadmin.site.register(ActivityCategroy,ActivityCategroyAdmin)
xadmin.site.register(MaterialCategroy,MaterialCategroyAdmin)
xadmin.site.register(Foods,FoodsAdmin)